import { ApiPropertyOptional } from '@nestjs/swagger';
import { Min } from 'class-validator';

export class RoleListDto {
  @ApiPropertyOptional({ required: false, description: '一页显示个数' })
  @Min(1)
  pageSize?: number = 20;

  @ApiPropertyOptional({ required: false, description: '当前页' })
  @Min(1)
  currentPage?: number = 1;
}
